
{template 'include/header'}
<style>
	body{background:#f2f2f2; padding-bottom:63px; font-family:Helvetica, Arial, sans-serif;}
	a{color:#666666;}a:hover{color:#3ebacc;}
	.profile-box{padding:10px 0; background:transparent; background-size:100% 100%;}
	.col-sm-12 input,.col-sm-4 input{height:35px;border-radius:5px;border:1px solid #AEB2B3;}
	.control-label {font-size:14px;line-height:18px;margin-top:5px;font-weight: 400;color: #666;padding:0 0 4px 12px;}
	.col-sm-12 textarea {border-radius:5px;border:1px solid #AEB2B3;}
	.col-sm-12 input,.col-sm-12 textarea{width:100%}
	.gy_trea{width: 100%;border-style: none;border-top:1px solid #e7e7e7;border-bottom: 1px solid #e7e7e7;-webkit-appearance: none;padding: 4px 10px;height: 130px;}
	.gy_d1{width: 100%;height: 46px;background: #fff;border-bottom: 1px solid #e7e7e7;position: fixed;top: 0;left: 0;z-index: 10;}
	.gy_d1l_img{width: 24px;float: left;margin-top: 11px;}
	.gy_d1l_spn{line-height: 46px;}
	.gy_d1l{width: 23%;float: left;margin-left: 2%}
	.gy_d1c{width: 50%;float: left;text-align: center;line-height: 46px;}
</style>
<div class="gy_d1" style="z-index:200;">
	<div class="gy_d1l" onClick="javascript:history.back(-1);"><img class="gy_d1l_img" src="<?php echo MODULE_URL;?>/template/mobile/img/gy_l.png"><span class="gy_d1l_spn">返回</span></div>
	<div class="gy_d1c">填写回复</div>
	<div class="clearfix"></div>
</div>
<div style="height:46px;"></div>
{php load()->func('tpl');}
<div class="profile">
	<div class="tabbable">
		<div class="profile-box">
		<form class="tab-content clearfix" action="{php echo $this->createMobileUrl('commentsub');}" method="post" enctype="multipart/form-data">
		<div class="tab-pane active animated" id="tab1">
			<div class="form-group">
				<textarea class="gy_trea" id="comment_cont" name="comment_cont" rows="10" placeholder="我来说一句"></textarea> 
				<font style="color:#999;float:right;margin-right:14px;">文明上网，理性发言</font>
			</div>
		</div>
		<br/>
		<div class="form-group">
			<input type="hidden" value="{$mem_id}" name="mem_id">
			<input type="hidden" value="{$parent_id}" name="parent_id">
			<input type="hidden" value="{$pro_id}" name="pro_id">
			<label class="col-xs-12 col-sm-12 control-label"></label>
			<div class="col-sm-12 col-xs-12" style="text-align:center">
				<a type="submit" id="btn_click" class="btn btn-primary btn-block" style="background:#43ac43;border:1px solid #43ac43" name="submit" value="提交">回复</a>
				<button type="submit" id="btn_submit" style="display:none" class="btn btn-primary btn-block" name="submit" value="回复">回复</button>
				<input type="hidden" name="token" value="{$_W['token']}" />
			</div>
		</div>
		</form>
		</div>
	</div>
</div>
<script>
	$("#btn_click").click(function(){
        var comment_cont = $("#comment_cont").val();

        if (comment_cont=="") {
            alert("你还没填写任何内容！");
            return ;
        }
       
        $("#btn_submit").click();

    });
</script>
